package com.hui.platform.falseworkapi.common.core.constant;

import com.hui.platform.falseworkapi.common.core.exception.throwing.BusinessExceptionThrow;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 通用业务错误信息描述枚举
 *
 * @author Peng
 * @date 2019/11/6
 */
@AllArgsConstructor
public enum CommonBusinessErrorEnum implements BusinessExceptionThrow {

    /**
     * 普通业务错误信息枚举 CRUD
     */
    COMMON_FAILED_CREATE("common.failed.create", "创建失败"),
    COMMON_FAILED_READ("common.failed.read", "获取失败"),
    COMMON_FAILED_UPDATE("common.failed.update", "更新失败"),
    COMMON_FAILED_USER_TYPE("common.failed.user.type", "用户类型不匹配"),
    COMMON_FAILED_DELETE("common.failed.delete", "删除失败"),
    ;
    
    @Getter
    private String key;
    @Getter
    private String message;
}
